home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / DB_CLIPP / 2510.ZIP / TRSOURCE.EXE / _TR_SCPY.C < prev    next >
C/C++ Source or Header  |  1990-10-22  |  542b  |  33 lines

  1. /*********
  2. *
  3. *  _TR_SCPY.C
  4. *
  5. *  by Tom Rettig
  6. *
  7. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  8. *
  9. *  Syntax: _tr_strcpy(cp1, cp2)
  10. *            char *cp1;
  11. *            char *cp2;
  12. *
  13. *  Return: char *cp1
  14. *  Note  : This function replaces the C library routine strcpy()
  15. ********/
  16.  
  17. #include "trlib.h"
  18.  
  19. char *_tr_strcpy(outstr, instr)
  20. char *outstr;
  21. char *instr;
  22. {
  23.    int i;
  24.    for (i = 0; instr[i] != NULLC; i++)
  25.    {
  26.       outstr[i] = instr[i];
  27.    }
  28.    outstr[i] = NULLC;
  29.  
  30.    return(outstr);
  31. }
  32.  
  33.